# -*- coding: utf-8 -*-
"""
______________________________
  Author: 安智军
  Email :  1010666711@qq.com
   Time : 2023/8/6 15:59
    File: home_page.py
Software: PyCharm
______________________________
"""
from .base_page import BaesPage
from .contact_page import ContactPage
from selenium.webdriver.common.by import By


class HomePage(BaesPage):
    # ADD_MEMBER = [By.XPATH, "//span[text()='添加成员']"]
    # 添加成员的元组定位信息
    ADD_MEMBER = (By.XPATH, "//span[text()='添加成员']")

    def click_member(self):
        # 点击添加用户按钮
        self.do_find(self.ADD_MEMBER).click()
        # 将 driver 传递给通讯录页面
        return ContactPage(self.driver)
